﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<PhotoGalleryEnteties.PhotoInfo>" %>
<%@ Import Namespace="PhotoGalleryEnteties" %>
<%@ Import Namespace="photogalleryMVC"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Detail
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


    <script type="text/javascript" src="<%=Url.Content("~/Scripts/PageScripts/PhotoDetail.js" ) %> "></script>
 
   


       <div class="hierarchy">
           
                <%=Html.HierarchyNavigation(i => Url.Action("Details", "Album", new { id = i }), (Dictionary<int, string>)ViewData["hierarchy"], new { @class = "reference" })%>
                <%= "/"+Model.Title  %>
            
       </div>
        <div class="PageSize">
                      <%=Html.ActionLink("Photo fullsize", "GetPhoto",new {photoType=PhotoType.OriginalImage ,id =Model.PhotoId },new{@class="reference"} ) %> 
                    </div>  
        <div class="original_image">
                   <img src="<%=Url.RouteUrl( "optimized",new {id = Model.PhotoId })  %>" alt=""  />
              
        </div>

       <div class="about">
                    <div class="PropertyList">
                    <div class="properety">
                        <div class="display-label">Title:</div>
                        <div class="ItemTitle">
                            <div class="display-field"><span class="TextClip"><%=Model.Title  %></span>
                            </div>
                        </div>
                    </div>
                    <div class="properety">
                        <div class="display-label">Addition date:</div>
                        <div class="display-field"><%: String.Format("{0:g}", Model.CreationDate ) %></div>
                    </div>
                    <div class="properety">
                        <div class="display-label">Width:</div>
                        <div class="display-field"><%: Model.Width %></div>
                    </div>
                    <div class="properety">
                        <div class="display-label">Height:</div>
                        <div class="display-field"><%: Model.Height %></div>
                    </div>
               </div>
              <div class="clear"></div>
       </div>
        <fieldset >
            <legend >Description:</legend>
                 <%: Model.Description %>
            </fieldset>
 
        <div id='CommentBlock'>
           
            <%Html.RenderAction("ShowComments", "Comment", new {id = Model.PhotoId});%>

        </div>

        
   
   

</asp:Content>

